package com.company;

public class AppleCounter extends Counter{

    public  void add(){
        synchronized (this){
            count += 1;
        }
    }
    public  void dec(){
        synchronized (this){
            count -= 1;
        }
    }
}
